// pages/recommend/recommend.js
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  // 国旗头像
  onNationalTap() {
    wx.navigateTo({
      url: '/pages/national/national'
    })
  },
  // 开关头像
  onSwitchTap() {
    wx.navigateTo({
      url: '/pages/switch/switch'
    })
  },

  onCloudTap() {
    wx.navigateToMiniProgram({
      appId: 'wxfce7797523932261',
      path: 'pages/index/index',
      // extraData: {
      //   from: 'xxxxx'
      // },
      envVersion: 'release',
      fail(res) {
        console.log(res)
      }
    })
  },
  // 账密管理
  onWorkTap() {
    wx.navigateToMiniProgram({
      appId: 'wxdcad065ad53d215c',
      path: 'pages/index/index',
      envVersion: 'release',
      fail(res) {
        console.log(res)
      }
    })
  },
  onToolTap() {
    wx.navigateToMiniProgram({
      appId: 'wxef8253d7590fb490',
      path: 'pages/index/index',
      envVersion: 'release',
      fail(res) {
        console.log(res)
      }
    })
  },
  // 婚礼邀请函
  onInvitationTap() {
    wx.navigateToMiniProgram({
      appId: 'wx3c5d5ba2e97c2fd6',
      path: 'pages/index/index',
      envVersion: 'release',
      fail(res) {
        console.log(res)
      }
    })
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})